package com.mspbots.core.wise.model;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * com.mspbots.core.model.TenantReport
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/7/16
 */
@Data
@NoArgsConstructor
@TableName(value = "tenant_reports", autoResultMap = true)
public class TenantReport extends TenantEntity {

    private Long messageId;
    private Long tenantUserId;
    private Long timeEntryId;
    private String type;
    private String email;
    private String document;
    private LocalDateTime reportTime;

    private transient String shortName;
    private transient String tenantUserName;

    @Builder
    public TenantReport(Long id, Long tenantId, Long messageId, Long tenantUserId, Long timeEntryId, String type, String email,
                        String document, LocalDateTime reportTime, String shortName, String tenantUserName) {
        this.id = id;
        this.tenantId = tenantId;
        this.messageId = messageId;
        this.tenantUserId = tenantUserId;
        this.timeEntryId = timeEntryId;
        this.type = type;
        this.email = email;
        this.document = document;
        this.reportTime = reportTime;
        this.shortName = shortName;
        this.tenantUserName = tenantUserName;
    }
}
